home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1994 #2
/
Monster Media No. 2 (Monster Media)(1994).ISO
/
maximus
/
ranmax11.zip
/
SAMPLE.MEC
< prev
next >
Wrap
INI File
|
1994-05-09
|
2KB
|
71 lines
[comment *******************************************************************
Documentation:
This sample will call RANMAX.EXE with parameters using the DOS
mecca command with parameters. It will then link the newly created
ranmax.bbs file which was created in and will be executed from the
current directory.
In this example, the second parameter "4" asked RANMAX to generate
a random number between 1 and 4 and add that to the name "samp" to get
the following results:
When linked, ranmax.bbs will display one of the following files in the
Misc\ directory. Typically, your default directory will be \MAX and your
SAMPxx.BBS files will be in the \MAX\MISC directory:
SAMP01.BBS
SAMP02.BBS
SAMP03.BBS
SAMP04.BBS
Limitations:
- The first parameter must be from 1 to 6 characters in length.
- The second parameter must be a number from 1 to 99.
In effect, the following files could be displayed using the proper command
line parameters:
D87.BBS
SCREEN07.BBS
PIC02.BBS
et cetera.
now, for the example:
Compile this file and the four example "SAMPxx.MEC" files and the SAMPLE.MEC
file and place all five in your MISC\ directory. Place RANMAX.EXE somewhere
in your path, preferably in your \BBS or \MAX directory. Then display
SAMPLE.BBS several times with either ORACLE.EXE or from within your BBS
to see this small demonstration of the effect.
For full syntax information, type "RANMAX" at any prompt.
****************************************************************************]
[white]--------------------------------------------------[grey]
[dos]ranmax samp 4
[link]ranmax
[White]--------------------------------------------------
[blue]Please pass this utility on to a friend, compliments of HammerWare(tm).
Your author is David Cox, 1:138/225@fidonet.org. Your comments are welcome.
Concept by Shay Rockman, with included snappy comments during creation.
[grey]
[comment *******************************************************************
If you were wondering:
NOTE: The random number generator is "seeded" with the seconds from GMT
January 1, 1970 and never will be seeded the same, so you in effect have a
quite random selection when you implement this program in maintenance, a
*.BBS command file, or whatever.
HammerNet - file request "HAMMER" from 1:138/225 or 1:138/251
****************************************************************************]